<template>
	<view class="content">
		<nav-bar title='充值流水' black bgColor="rgba(255,255,255,0)" titleColor="#333333"></nav-bar>
		<view class="item-box">
			<view class="item" v-for="(item,index) in recordList" :key=item.id>
				<view class="left">
					<view class="name">
						{{item.name}}
					</view>
					<view class="time">
						{{item.time}}
					</view>
				</view>
				<view class="right">
					<view class="money">
						{{item.money}}元
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	const app = getApp();
	export default {
		data() {
			return {
				recordList: []
			}
		},
		onLoad() {
			let that = this;
			app.globalData.index_login = 1;
			app.login();
			that.get_data();
				
		},
		methods: {
			get_data(){
				var _this = this;
				
				app._get('user/get_pay_vip_lists', {
				}, function(res) {
					_this.recordList = res.lists;
				});
			},

		}
	}
</script>

<style lang="less">
	page {
		background-image: url('https://item.techolic.cn/hjf/Public/appimg/person_bg.png');
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center center;
	}

	.content {
		width: 750rpx;
		height: auto;
		padding-bottom: 160rpx;

		.item-box {
			margin: 32rpx;

			.item {
				margin: 20rpx 0;
				padding: 20rpx 32rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				background-color: #ffffff;
				border-radius: 12rpx;

				.left {
					.name {
						font-size: 32rpx;
						font-weight: bold;
						color: #000000;
						margin-bottom: 14rpx;
					}

					.time {
						font-size: 24rpx;
						color: #b5b5b5;
					}
				}

				.right {
					.money {
						font-size: 32rpx;
						font-weight: bold;
					}
				}
			}
		}
	}
</style>